package com.study.泛型;

public class Cache<XXX> {
	XXX value;

	public Object getValue() {
		return value;
	}

	public void setValue(XXX value) {
		this.value = value;
	}

	public static void main(String[] args) {
		Cache<String> ca1 = new Cache<>();
		ca1.setValue("我是爸爸");
		System.out.println(ca1.getValue());
		Cache<Integer> ca2 = new Cache<>();
		ca2.setValue(123);
		System.out.println(ca2.getValue());
	}
	
}